package me.xADudex.RandomLocation;

class ChunkCoord
{
    private int x;
    private int z;
    
    ChunkCoord(final int x, final int z) {
        this.x = x;
        this.z = z;
    }
    
    void setX(final int x) {
        this.x = x;
    }
    
    void setZ(final int z) {
        this.z = z;
    }
    
    int getX() {
        return this.x;
    }
    
    int getZ() {
        return this.z;
    }
    
    @Override
    public boolean equals(final Object obj) {
        if (obj instanceof ChunkCoord) {
            final ChunkCoord cc = (ChunkCoord)obj;
            if (cc.x == this.x && cc.z == this.z) {
                return true;
            }
        }
        return false;
    }
    
    @Override
    public String toString() {
        return "CunkCoord[X=" + this.x + ",Z=" + this.z + "]";
    }
}
